package com.pysrc.base.controller;

import com.pysrc.base.annotation.InterAnnotation;
import com.pysrc.base.annotation.LogAnnotation;
import com.pysrc.base.entity.MateStoreMapping;
import com.pysrc.base.service.MateStoreMappingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @ClassName:
 * @Auther L.Chen
 * @CreateDate
 * @Description TODO
 */
@RestController
@RequestMapping(value = "/msm")
public class MateStoreMappingController{
    @Autowired
    private MateStoreMappingService service;
    @GetMapping(value = "")
    public List<MateStoreMapping> select(MateStoreMapping mapping,Integer page, Integer pageSize){
        return service.select(mapping,page,pageSize);
    }
    @InterAnnotation
    @LogAnnotation
    @PostMapping(value = "")
    public MateStoreMapping update(@RequestBody MateStoreMapping t) throws Exception {
        return service.update(t);
    }
}
